<template>
  <input type="text" v-model="myMessage" />
  <input type="text" v-model="myAnotherMessage" />
</template>

<script>
export default {
  props: {
    message: String,
    anotherMessage: String
  },
  emits: ['update:rootMessage', 'update:anotherMessage'],
  computed: {
    myMessage: {
      get() {
        return this.message
      },
      set(value) {
        this.$emit('update:rootMessage', value)
      }
    },
    myAnotherMessage: {
      get() {
        return this.anotherMessage
      },
      set(value) {
        this.$emit('update:anotherMessage', value)
      }
    }
  }
}
</script>

<style scoped></style>
